package com.ruoyi.robot.pojo.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.influxdb.annotations.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.Instant;

/**
 * 功能描述：
 *
 * @Author：yid
 * @Date：2023/1/29 17:01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "RobotMes对象", description = "")
public class RobotMes implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "机器人编号")
    @NotBlank(message = "机器人编号不能为空")
    @Column(tag = true)
    private String robotNo;

    @ApiModelProperty(value = "污点x轴坐标")
    @NotNull(message = "x轴坐标不能为空")
    @Column
    private Double x;

    @ApiModelProperty(value = "污点y轴坐标")
    @NotNull(message = "y轴坐标不能为空")
    @Column
    private Double y;

    @ApiModelProperty(value = "污点z轴坐标")
    @NotNull(message = "z轴坐标不能为空")
    @Column
    private Double z;

    @ApiModelProperty(value = "清洁度等级")
    @NotNull(message = "清洁度等级不能为空")
    @Column
    private Double cleanRank;

    @Column(timestamp = true)
    private Instant time;
}
